<!--
/**
* Form for editing user's profile
*
* @package     Heurist academic knowledge management system
* @link        http://HeuristNetwork.org
* @copyright   (C) 2005-2014 University of Sydney
* @author      Artem Osmakov   <artem.osmakov@sydney.edu.au>
* @license     http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0
* @version     4.0
*/

/*
* Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.txt
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied
* See the License for the specific language governing permissions and limitations under the License.
*/
-->


<form>
    <fieldset>

        <div class="mode-edit">
            <div class="header"><label for="ugr_ID">User ID</label></div>
            <input type="text" name="ugr_ID" id="ugr_ID" class="text ui-widget-content ui-corner-all" readonly="readonly"/>
        </div>
        <div>
            <div class="header"><label for="ugr_FirstName">Given name</label></div>
            <input type="text" name="ugr_FirstName" id="ugr_FirstName" class="text ui-widget-content ui-corner-all mandatory"  maxlength="40" style="width:20em"/>
        </div>
        <div>
            <div class="header"><label for="ugr_LastName">Family name</label></div>
            <input type="text" name="ugr_LastName" id="ugr_LastName" class="text ui-widget-content ui-corner-all mandatory" maxlength="63" style="width:20em"/>
        </div>
        <div>
            <div class="header"><label for="ugr_eMail">Email</label></div>
            <input type="text" name="ugr_eMail" id="ugr_eMail" class="text ui-widget-content ui-corner-all mandatory" style="width:20em" onblur="autofill_login(this.value)"/>
        </div>
        <div>
            <div class="header"><label for="ugr_Name">Login name</label></div>
            <input type="text" name="ugr_Name" id="ugr_Name" class="text ui-widget-content ui-corner-all mandatory" style="width:20em" maxlength="16" />
            <div class="prompt">
                The login field is auto-populated with your email address. You may change it to a shorter version, such as your given name or family name
            </div>
        </div>
        <div>
            <div class="header"><label for="ugr_Password">Password</label></div>
            <input type="password" name="ugr_Password" id="ugr_Password" class="text ui-widget-content ui-corner-all" style="width:10em;" maxlength="16" />&nbsp;<label class="mode-edit">Leave blank for no change</label>
            <div class="prompt">
                Note: http:// web traffic is non-encrypted. You should not assume this server is secure.<br />
                Therefore, please don't use an important password such as institutional or banking login.<br />
                If you need to store data of a confidential nature, such as personal records, please<br />
                contact the Heurist team or your system administrator about setting up a secured server.
            </div>
        </div>
        <div>
            <div class="header"><label for="password2">Repeat password</label></div>
            <input type="password" name="password2" id="password2" class="text ui-widget-content ui-corner-all" style="width:10em;" maxlength="16"/>
        </div>
        <div>
            <div class="header"><label for="ugr_Organisation">Institution/company</label></div>
            <input type="text" name="ugr_Organisation" id="ugr_Organisation" class="text ui-widget-content ui-corner-all mandatory" style="width:35em;" maxlength="120"/>
            <div class="prompt">
                Enter 'None' if not affiliated with an institution or company
            </div>
        </div>
        <div>
            <div class="header" style="vertical-align:top;"><label for="ugr_Interests">Research Interests</label></div>
            <textarea id="ugr_Interests" name="ugr_Interests" rows="2" cols="80" style="width:35em;"
                class="text ui-widget-content ui-corner-all mandatory"></textarea>
            <div class="prompt">
                Enter a concise description (up to 250 characters) of your research interests
            </div>
        </div>
        <div class="mode-admin">
            <div class="header"><label for="ugr_Enabled">Enabled</label></div>
            <input type="checkbox" id="ugr_Enabled" name="ugr_Enabled" class="text ui-widget-content ui-corner-all" checked="checked"/>
            <div class="prompt">
                Check to enable the user, unchecked users will not be able to log in
            </div>
        </div>

        <div style="display:none;">
            <div class="header"><label for="ugr_IsModelUser">Model user</label></div>
            <input type="checkbox" id="ugr_IsModelUser" name="ugr_IsModelUser" class="text ui-widget-content ui-corner-all"/>
            <div class="prompt">
                If checked, user's tags, searches and bookmarks will appear in My Profile &gt; Load Profiles
            </div>
        </div>
    </fieldset>
    <!-- OPTIONAL FIELDS  -->
    <div id="accordion">
        <h3><label>Optional information</label></h3>
        <fieldset style="display: none;">

            <div>
                <div class="header" style="vertical-align:top;"><label for="ugr_IncomingEmailAddresses">Incoming email addresses</label></div>
                <textarea id="ugr_IncomingEmailAddresses" name="ugr_IncomingEmailAddresses" rows="3" cols="80" style="width:35em;"
                    class="text ui-widget-content ui-corner-all"></textarea>
                <div class="prompt">
                    Comma-separated list of email addresses you may use to send email to the database
                    Email sent from these addresses may be harvested into database records
                </div>
            </div>
            <div>
                <div class="header" style="vertical-align:top;"><label for="ugr_TargetEmailAddresses">Outgoing email addresses</label></div>
                <textarea id="ugr_TargetEmailAddresses" name="ugr_TargetEmailAddresses" rows="3" cols="80" style="width:35em;"
                    class="text ui-widget-content ui-corner-all"></textarea>
                <div class="prompt">
                    Comma-separated list of email addresses to which you may want to send database records as email.
                    This will be added to the default list for the database when choosing an email destination to which to email records.
                </div>
            </div>
            <div>
                <div class="header"><label for="ugr_Department">Department</label></div>
                <input type="text" name="ugr_Department" id="ugr_Department" class="text ui-widget-content ui-corner-all" style="width:35em;" maxlength="120"/>
            </div>
            <div>
                <div class="header"><label for="ugr_City">Suburb/City</label></div>
                <input type="text" name="ugr_City" id="ugr_City" class="text ui-widget-content ui-corner-all" style="width:30em;" maxlength="63"/>
            </div>
            <div>
                <div class="header"><label for="ugr_State">State</label></div>
                <input type="text" name="ugr_State" id="ugr_State" class="text ui-widget-content ui-corner-all" style="width:20em;" maxlength="40"/>
            </div>
            <div>
                <div class="header"><label for="ugr_Postcode">Zip/postcode</label></div>
                <input type="text" name="ugr_Postcode" id="ugr_Postcode" class="text ui-widget-content ui-corner-all" style="width:20em;" maxlength="20"/>
            </div>

            <!-- This field is really intended more for user groups
            <div class="input-row" style="display: none;">
            <div class="input-header-cell" style="vertical-align:top" for="ugr_Description">Description</div>
            <div class="input-cell"><textarea cols="200" id="ugr_Description" rows="4" style="width:35em;"></textarea>
            <div class="help prompt">
            Description of a workgroup, used in workgroup homepage
            </div>
            </div>
            </div>-->

            <div>
                <div class="header" style="vertical-align:top;"><label for="ugr_URLs">Personal Website URLs</label></div>
                <textarea id="ugr_URLs" name="ugr_URLs" rows="1" cols="80" style="width:35em"
                    class="text ui-widget-content ui-corner-all"></textarea>
            </div>

        </fieldset>
        <h3 class="mode-registration"><label>Conditions</label></h3>
        <div>

            <div>HEURIST is a development system maintained by the University of Sydney, and our funding is modest.
                By using the HEURIST system on a University of Sydney server you acknowledge the following and agree
                to license these systems on the following terms and conditions. Different conditions may be applied on
                servers maintained by other institutions or individuals - please consult those concerned:</div>
            <ul style="padding-left: 2em;">
                <li>
                    HEURIST services on University of Sydney servers are intended for personal and academic use only.
                    All users are specifically identified by their name, email address and
                    institution. This is required to provide a focus and accountability and to
                    avoid the problems associated with anonymous systems.
                </li>
                <li>
                    As a user you agree not to enter any material which members of the
                    general public would reasonably consider to be offensive. You agree only
                    to enter material in which you hold copyright and any other relevant
                    intellectual property rights, and in entering material you agree to make
                    it available for fair use by the University of Sydney and by other users
                    of the system. You further agree to indemnify the University of Sydney for
                    any claims arising from any breach by you of these terms and conditions.
                </li>
                <li>As a user you also agree not to enter any material of a personal nature such as
                    survey or health data identifying individuals without the express written permission
                    of the system managers. Confidential data of this type will require special
                    precautions to ensure its security.
                </li>
                <li>
                    We will use reasonable efforts to maintain the operation, reliability
                    and security of the systems, to provide means of exporting information
                    from the system in a structured form suitable for import to other systems,
                    and to give adequate warning if for any reason our support of the systems
                    is to be reduced or discontinued. However, you agree that we provide no
                    express or implied warranties in relation to the operation, reliability or
                    security of the systems or otherwise, nor in relation to the content of any
                    material available on the systems. You agree that any use of the systems
                    is made entirely at your own risk. You expressly release us from any and
                    all liability arising from or in any way connected with your use of the
                    systems.
                </li>
                <li>
                    In the first instance we make the system available to any
                    academics and selected others in our absolute discretion. We may at some time
                    need to limit new registrations and/or access if usage of the systems
                    exceeds our ability to service traffic.
                </li>
                <li>
                    We reserve the right to block/remove any users who we determine in our
                    absolute discretion abuse the system or enter inappropriate content,
                    without recourse and without explanation.
                </li>
                <li>
                    Other authorised/logged-in users of a specific database are able to view the
                    contact details of persons who added, edited or tagged records in the database.
                    By using these systems you agree that your contact details will be made available
                    to other users in this manner.
                </li>
                <li>
                    Other authorised/logged-in users of a specific database can view and search across
                    all tags you use within that database, and may be able to search across all text
                    you have entered, in order to identify records of interest, however other users
                    cannot view text marked as private (private notes, password reminders etc.).
                </li>
            </ul>
        </div>
    </div>

    <div class="mode-registration">
        <p>Please read the Conditions of Use above, then click the Register button at the end of the page.
            Note: This system should not be used for the storage of confidential personally-identifiable information
            such as health information without the express permission of the system managers.</p>
        <p>If you experience problems with the registration process, please let us know what went wrong
            (and send your registration details for manual addition).</p>
        <p id="contactDetails"> (database owner)</p>
        <input type="checkbox" id="agree" onClick="enable_register(this.checked)">
        <label for="agree">I have read and agree to the Terms and Conditions of Use above</label>
    </div>

</form>
  <br />
  <p class="messages"></p>
